#include "PlayerImpl.hpp"

namespace HTC{

    namespace ZJH{

        Player* PlayerImpl::Instance(string _id){

        }  

        FriendList* PlayerImpl::FreshFriendList(string _id){
            FriendList* list = new FriendList(); 
            /*
               @sql-qurey
             */
            return list;
        }

        bool PlayerImpl::Collect(Player* _player){

            if(NULL != _player){
                
                delete _player; 

                _player = NULL;

                return true;

            }

            return false;

        }

        bool PlayerImpl::Collect(FriendList* _list){
            
            if(NULL != _list){
            
                    delete _list;

                    _list = NULL;

                    return true;
            } 

            return false;

        }

    }

}
